#!/usr/bin/env python

import os

import resource.string.app as r

class Meta(object):
    """Miyuki meta"""

    def __init__(self, **kw):
        self.name = r.name
        self.description = r.description
        self.version = r.version.number
        self.histories = r.histories
        d = self.histories[self.version]
        self.trademarks = r.blessing
        self.copyright = r.copyright
        self.company_name = r.company.name
        self.comments = r.blessing
        self.author = r.author.name
        self.author_email = r.author.email
        self.maintainer = r.author.name
        self.maintainer_email = r.author.email
        self.long_version = r.version.human
        self.release_date = r.date
        
        # For executable
        self.script = 'miyuki.py'
        self.icon = os.path.join(os.getcwdu(), "resource", "icon",
                                 'app.ico')
        self.icon_resources = [(1, self.icon)]
        self.dest_base = self.name
        self.other_resources = [(24, 1, r.manifest)]
        
        self.__dict__.update(kw)
